import React from "react";
import {StyleSheet, View} from "react-native";
import {ScreenDimensions} from "../../libs/utils/ScreenDimensions";


type EHrProp = {
    style?: any,
    height: number

}

export default class EHr extends React.Component<EHrProp, any> {
    constructor(props:EHrProp) {
        super(props);
    }
    render() {
        let styleHeight:any = {};
        if(!this.props.height){
            styleHeight = {height:12};
        }
        else {
            styleHeight = {height:this.props.height};
        }
        
        return (
            <View style={[styles.container,styleHeight, this.props.style ? this.props.style : {}]} />
        );
    }
}

let styles = StyleSheet.create({
    container:{
        // backgroundColor:'#9e9e9e17'
        width:ScreenDimensions.screen.width,
        backgroundColor:ScreenDimensions.themeBackgroundColor
    },
});
